<div id="newtasklistbox<?php echo $form->getObject()->isNew() ? '' : $form->getObject()->getId() ?>" class="gray-box">
	<form id="taskListForm<?php echo $form->getObject()->isNew() ? '' : $form->getObject()->getId() ?>"
		method="post" 
		action="<?php echo url_for('task_lists/'.($form->getObject()->isNew() ? 'create' : 'update').(!$form->getObject()->isNew() ? '?id='.$form->getObject()->getId() : '')) ?>">
		<label>Enter a name for this List:</label>
		<?php echo $form['name']->render(array('class' => 'input-text')) ?>					
		<div class="hrule">
			<hr/>
		</div>
		<label>Relate this List to a Course:</label>
		<?php echo $form['course_id']->render() ?>
		<div class="hrule">
			<hr/>
		</div>
		<label>Optionally choose a task type:</label>
		<?php echo $form['type_id']->render() ?>
		<div class="hrule white">
			<hr/>
		</div>
		<ul class="options">
			<li>
				<input type="submit" value="Save List"/>
			</li>
			<li>
				<?php if($form->getObject()->isNew()):?>
					<a href="javascript:void(0);" class="cancel-form" onclick="cancelAddTaskList()">Cancel</a>
				<?php else:?>
					<a href="javascript:void(0);" class="cancel-form" onclick="cancelEditTaskList(<?php echo $form->getObject()->getId() ?>)">Cancel</a>
				<?php endif?>
			</li>
		</ul>
		<input type="hidden" name="group_id" value="<?php echo $group->getId() ?>" />
		<input type="hidden" name="isAjax" value="<?php echo $sf_request->getParameter('isAjax') ?>" />
		<?php echo $form->renderHiddenFields() ?>		
	</form>
</div>